<?php


namespace app\hotel\controller;


use app\BaseController;
use app\service\HotelService;
use think\App;

class RoomController extends BaseController
{
    private $HotelService;

    public function __construct(App $app)
    {
        $this->HotelService = new HotelService();
        parent::__construct($app);
    }

    public function getRoomList(){
        $param = $this->request->param(['province' => '' , 'city' => '' , 'district' => '' , 'page' => 1 , 'limit' => 10]);
        $HotelModel = $this->HotelService->getHotelAll($param['province'] , $param['city'] , $param['district'] , $param['page'] , $param['limit']);
        return $this->returnJson($HotelModel);
    }
}